package com.doge.controller.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.base.BaseRespVo;
import com.doge.service.admin.feedback.FeedbackService;
import com.doge.service.admin.feedback.FeedbackServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.nio.file.attribute.UserPrincipalNotFoundException;

/**
 * @program: project2-wechat-mall
 * @description: 反馈
 * @author: zhu lei
 * @create: 2021-11-30 16:52
 **/
@RestController
@RequestMapping("/admin/feedback")
public class FeedbackController {
    @Autowired
    FeedbackServiceImpl feedbackService;

    @RequestMapping("list")
    public BaseRespVo feedbackList(Integer id, String username, BaseParam baseParam) {
        BaseData baseData = feedbackService.feedbackList(id, username, baseParam);
        return BaseRespVo.ok(baseData);
    }
}